home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Otherware
/
Otherware_1_SB_Development.iso
/
mac
/
sysext
/
cdev
/
scroll.cpt
/
Scroll O Rama ƒ
/
SBar Init
/
SBarInit.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-10
|
632b
|
33 lines
/* This is the source code for the init resource for the cdev. All it */
/* does is display the icons at start-up. */
#define BaseIconID 128
#define LastIconID -4064
#define ProcID 128
#define WordResID -4048
#define NumIcons 8
#define NormalAppFont applFont
#define DelayTime 30L
main()
{
Handle procH;
int i;
long dummy;
if ((procH = GetResource('jROC', ProcID)) != 0l)
{
HLock(procH);
CallPascal(BaseIconID, 0, *procH);
Delay(DelayTime, &dummy);
for (i = 1; i < NumIcons -1; i++)
CallPascal(BaseIconID + i, 0, *procH);
CallPascal(LastIconID, -1, *procH);
HUnlock(procH);
}
}